import request from "@/utils/request";

// 查询贷款产品列表
export function listBizProductInfo(query) {
  return request({
    url: "/biz/bizProductInfo/list",
    method: "get",
    params: query,
  });
}

// 查询贷款产品详细
export function getBizProductInfo(id) {
  return request({
    url: "/biz/bizProductInfo/" + id,
    method: "get",
  });
}

// 新增贷款产品
export function addBizProductInfo(data) {
  return request({
    url: "/biz/bizProductInfo",
    method: "post",
    data: data,
  });
}

// 修改贷款产品
export function updateBizProductInfo(data) {
  return request({
    url: "/biz/bizProductInfo",
    method: "put",
    data: data,
  });
}

// 删除贷款产品
export function delBizProductInfo(id) {
  return request({
    url: "/biz/bizProductInfo/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizProductInfo/findMaxSort",
    method: "get",
  });
}
// 导出贷款产品
export function exportBizProductInfo(query) {
  return request({
    url: "/biz/bizProductInfo/export",
    method: "get",
    params: query,
  });
}
